Wraps a nkGraphics::Camera and offers functions for use in scripting.
More...
Wraps a nkGraphics::Camera and offers functions for use in scripting.
◆ updateEnvironment()
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ getPositionAbsolute()
static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::CameraWrapper::getPositionAbsolute |
( |
void * |
data | ) |
|
|
static |
Wrapper function for the nkGraphics::Camera::getPositionAbsolute(), exposed as an attribute getter.
local d = c.positionAbsolute ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkGraphics::Vector.
◆ getFrustum()
◆ getFov()
Wrapper function for the nkGraphics::Camera::getFov(), exposed as an attribute getter.
local d = c.fov ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a float.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsAstraeus/Scripts/Lua/nkGraphicsWrap/Cameras/CameraWrapper.h